import { _decorator, Component, Label, Node } from "cc";
const { ccclass, property } = _decorator;

@ccclass("LifeUILayer")
export class LifeUILayer extends Component {
  @property(Label)
  lifeNumberLabel: Label = null!;
  start() {}

  update(deltaTime: number) {}
  onUpdateLifeNumber(num: number) {
    this.lifeNumberLabel.string = num.toString();
  }
}
